<?php
/**
 * @author 刘国君
 * @version 1.0
 */


$ml="ACK sip:34020000001310000001@192.168.1.92 SIP/2.0\r\nVia: SIP/2.0/UDP 192.168.1.80:9301;rport;branch=z9hG4bK14273066\r\nFrom: <sip:34020000001310000001@192.168.1.80:9301>;tag=539567811\r\nTo: <sip:34020000002000000001@192.168.1.92>;tag=139512741\r\nCall-ID: 842999597\r\nCSeq: 1 ACK\r\nMax-Forwards: 70\r\nUser-Agent: eXosip/3.6.0\r\nContent-Length: 0\r\n\r\n";

$fp=stream_socket_client('udp://127.0.0.1:9301');
fwrite($fp,$ml);
echo fread($fp,1024);